
GM.Name 	= "SCI-FI Team Death Match"
GM.Author 	= "Azzy"
GM.Email 	= ""
GM.Website 	= ""

DeriveGamemode( "fretta" )
IncludePlayerClasses()

GM.Help		= "No Help Available"
GM.TeamBased = true
GM.AllowAutoTeam = true
GM.AllowSpectating = true
GM.SelectClass = true
GM.SecondsBetweenTeamSwitches = 10
GM.RoundBased = true
GM.RoundLength = 60 * 3
GM.GameLength = (GM.RoundLength / 60) * 3
GM.NoAutomaticSpawning = true
GM.RoundEndsWhenOneTeamAlive = true

TEAM_RESISTANCE = 1
TEAM_ALIENS = 2

/*---------------------------------------------------------
   Name: gamemode:CreateTeams()
   Desc: Note - HAS to be shared.
---------------------------------------------------------*/
function GM:CreateTeams()

	if ( !GAMEMODE.TeamBased ) then return end
	
	team.SetUp( TEAM_RESISTANCE, "Human Resistance", Color( 110, 140, 250 ), true )
	team.SetSpawnPoint( TEAM_RESISTANCE, "info_player_counterterrorist" )
	team.SetClass( TEAM_RESISTANCE, { "RESLight", "RESMedium", "RESHeavy", } )
	
	team.SetUp( TEAM_ALIENS, "Alien Invaders", Color( 255, 90, 70 ) )
	team.SetSpawnPoint( TEAM_ALIENS, "info_player_terrorist" )
	team.SetClass( TEAM_ALIENS, { "ALILight", "ALIMedium", "ALIHeavy", } )
	
	team.SetUp( TEAM_SPECTATOR, "Spectators", Color( 200, 200, 200 ), true )
	team.SetSpawnPoint( TEAM_SPECTATOR, { "info_player_start", "info_player_terrorist", "info_player_counterterrorist" } ) 

end
